package com.shadow.demo.common.form;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.HashSet;
import java.util.Set;

@Data
@Accessors(chain = true)
public class SitePublicForm {

    private String title;

    private String type;

    private Set<String> part;

    private Set<String> roles;

    private String userId;

    private boolean haveDelSelect;

    public Set<String> getPart() {
        if (part == null) {
            part = new HashSet<>();
        }
        return part;
    }
}
